<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8">

<title>class WelcomeController - Rails Application Documentation</title>

<link href="./fonts.css" rel="stylesheet">
<link href="./rdoc.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
</script>

<script src="./js/jquery.js"></script>
<script src="./js/navigation.js"></script>
<script src="./js/search_index.js"></script>
<script src="./js/search.js"></script>
<script src="./js/searcher.js"></script>
<script src="./js/darkfish.js"></script>


<body id="top" role="document" class="class">
<nav role="navigation">
  <div id="project-navigation">
    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2>
    <a href="./index.html" rel="home">Home</a>
  </h2>

  <div id="table-of-contents-navigation">
    <a href="./table_of_contents.html#pages">Pages</a>
    <a href="./table_of_contents.html#classes">Classes</a>
    <a href="./table_of_contents.html#methods">Methods</a>
  </div>
</div>

    <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

  </div>

  

  <div id="class-metadata">
    
    <div id="parent-class-section" class="nav-section">
  <h3>Parent</h3>

  
  <p class="link"><a href="ApplicationController.html">ApplicationController</a>
  
</div>

    
    
    <!-- Method Quickref -->
<div id="method-list-section" class="nav-section">
  <h3>Methods</h3>

  <ul class="link-list" role="directory">
    
    <li ><a href="#method-i-index">#index</a>
    
    <li ><a href="#method-i-new">#new</a>
    
  </ul>
</div>

  </div>
</nav>

<main role="main" aria-labelledby="class-WelcomeController">
  <h1 id="class-WelcomeController" class="class">
    class WelcomeController
  </h1>

  <section class="description">
    
  </section>

  
  
  
  <section id="5Buntitled-5D" class="documentation-section">
    

    

    

    

    
     <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
       <header>
         <h3>Public Instance Methods</h3>
       </header>

    
      <div id="method-i-index" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">index</span><span
            class="method-args">()</span>
          
          <span class="method-click-advice">click to toggle source</span>
          
        </div>
        

        <div class="method-description">
          
          
          
          

          
          <div class="method-source-code" id="index-source">
            <pre><span class="ruby-comment"># File app/controllers/welcome_controller.rb, line 7</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
      
<span class="ruby-identifier">client</span> = <span class="ruby-constant">Google</span><span class="ruby-operator">::</span><span class="ruby-constant">APIClient</span>.<span class="ruby-identifier">new</span>
  <span class="ruby-identifier">client</span>.<span class="ruby-identifier">authorization</span>.<span class="ruby-identifier">client_id</span> = <span class="ruby-string">&#39;422061338001-fp3q5ts40hfhcb1vkjfoeugs1hpfplas.apps.googleusercontent.com&#39;</span>

  <span class="ruby-identifier">client</span>.<span class="ruby-identifier">authorization</span>.<span class="ruby-identifier">client_secret</span> = <span class="ruby-string">&#39;422061338001-fp3q5ts40hfhcb1vkjfoeugs1hpfplas@developer.gserviceaccount.com&#39;</span>
  <span class="ruby-identifier">client</span>.<span class="ruby-identifier">authorization</span>.<span class="ruby-identifier">redirect_uri</span> = <span class="ruby-string">&#39;http://archercraftstore.github.io/&#39;</span>
  <span class="ruby-identifier">client</span>.<span class="ruby-identifier">authorization</span>.<span class="ruby-identifier">scope</span> = <span class="ruby-string">&#39;https://www.googleapis.com/auth/drive.file&#39;</span>
  <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">client</span>.<span class="ruby-identifier">authorization</span>.<span class="ruby-identifier">authorization_uri</span>
  <span class="ruby-identifier">authorizatin_code</span> = <span class="ruby-identifier">params</span>[<span class="ruby-value">:code</span>]
  <span class="ruby-identifier">client</span>.<span class="ruby-identifier">code</span> = <span class="ruby-identifier">authorization_code</span>
  <span class="ruby-identifier">client</span>.<span class="ruby-identifier">fetch_access_token!</span>
  <span class="ruby-identifier">drive</span> = <span class="ruby-identifier">client</span>.<span class="ruby-identifier">discovered_api</span>(<span class="ruby-string">&#39;drive&#39;</span>,<span class="ruby-string">&#39;v2&#39;</span>)
<span class="ruby-keyword">end</span></pre>
          </div>
          
        </div>

        

        
      </div>

    
      <div id="method-i-new" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">new</span><span
            class="method-args">()</span>
          
          <span class="method-click-advice">click to toggle source</span>
          
        </div>
        

        <div class="method-description">
          
          
          
          

          
          <div class="method-source-code" id="new-source">
            <pre><span class="ruby-comment"># File app/controllers/welcome_controller.rb, line 4</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">new</span>
  
<span class="ruby-keyword">end</span></pre>
          </div>
          
        </div>

        

        
      </div>

    
    </section>
  
  </section>
</main>


<footer id="validator-badges" role="contentinfo">
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
  <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
</footer>

